projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6355fa5
)
* lisp/simple.el (read-from-kill-ring): Call current-kill to prefill kill-ring
author
Juri Linkov
<juri@linkov.net>
Sun, 29 Nov 2020 19:54:53 +0000
(21:54 +0200)
committer
Juri Linkov
<juri@linkov.net>
Sun, 29 Nov 2020 19:54:53 +0000
(21:54 +0200)
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index 93fda7de8a17b3ea557216151b72b7ab93363f2d..7d0c229cad060380ee83708e2ba920d3de2957a6 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-5459,6
+5459,8
@@
With ARG, rotate that many kills forward (or backward, if negative)."
(defvar read-from-kill-ring-history)
(defun read-from-kill-ring ()
"Read a string from `kill-ring' using completion and minibuffer history."
+ ;; `current-kill' updates `kill-ring' with a possible interprogram-paste
+ (current-kill 0)
(let* ((history-add-new-input nil)
(ellipsis (if (char-displayable-p ?…) "…" "..."))
;; Remove keymaps from text properties of copied string,